import request from '@/utils/requestManage.js'

export default {
    //获取子级组织
    queryTreeByOrganizationNoList(noList) {
        return request({
            url: `/v3/organization/organization/queryTreeByOrganizationNoList?noList=${noList}`,
            method: 'GET'
        })
    },
    //获取顶级子组织
    queryOrganization(topOrganizationNo) {
        return request({
            url: `/v3/virtualSystem/queryOrganization?topOrganizationNo=${topOrganizationNo}`,
            method: 'GET'
        })
    },
    //获取组织库
    queryByOrganizationNo(topOrganizationNo) {
        return request({
            url: `/v3/organization/organizationToDatabaseMapper/queryByOrganizationNo?no=${topOrganizationNo}`,
            method: 'GET'
        })
    },
    //获取员工
    queryByPerson(data={}) {
        return request({
            url: `/v3/organization/personDepartmentMapper/queryByCondition`,
            method: 'POST',
            data:{organizationNo:sessionStorage.organizationNo,...data}
        })
    }
    
}
